package main

import (
	"fmt"
	"time"
)

const (
	// c2Key c2任务队列
	c2Key = "c2_info:"
	// c2Version 队列版本号
	c2Version = "1"
	c2TTL     = 60 * 60 * time.Second
)

// sectorKey 扇区换成key
func sectorKey(minerId, Id string) string {
	return fmt.Sprintf("%s:%s:%s:%s", c2Key, c2Version, minerId, Id)
}
